@media (prefers-color-scheme: light) {
  :root {
    --bg-main: #ffffff;
    --text-color-main: #2c3e50;
  }
}
/* 避免在深色模式下载入时闪屏 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #35363a;
    --text-color-main: #ffffff;
  }
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: arial, sans-serif;
  font-size: 14px;
  color: var(--text-color-main) !important;
  background-color: var(--bg-main) !important;
  /* GPU */
  transform: translateZ(0);
}

/* button icon */
.icon__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* setting */
.n-form-item {
  margin: 12px 0;
}
.n-form-item--color {
  margin: 3px 0 !important;
}
.n-base-select-option__content {
  width: 100% !important;
}
.setting-form__wrap {
  display: flex;
  flex-wrap: wrap;
}
.setting__label {
  opacity: 0.6;
}
.setting__input-wrap {
  flex: 1;
  display: flex;
  justify-content: space-between;
  .setting__input_item {
    display: flex;
    align-items: center;
    &:nth-of-type(2) {
      flex: 1;
      justify-content: flex-end;
      margin-left: 10px;
    }
  }
}
.setting__item-ml {
  margin-left: 10px;
}
.setting__item-element {
  flex: 0 0 auto;
  margin-left: 10px;
}
.setting__input-number {
  width: 103px;
}
.setting__input-number--unit {
  width: 150px;
}

/* dragMode input */
.n-input.n-input--disabled .n-input__input-el,
.n-input.n-input--disabled .n-input__textarea-el {
  cursor: move;
}

/* modal scroll */
.modal__content {
  height: 40vh;
  white-space: pre-line;
  overflow-y: scroll;
  &::-webkit-scrollbar {
    display: none;
    /* width: 10px; */
  }
  /* &::-webkit-scrollbar-thumb {
    background: #808080;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  }
  &::-webkit-scrollbar-track {
    background: #ccc;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  } */
}

.n-drawer-body-content-wrapper::-webkit-scrollbar {
  width: 10px;
}
.n-drawer-body-content-wrapper::-webkit-scrollbar-thumb {
  background: #808080;
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}
.n-drawer-body-content-wrapper::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}
